<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Navigation oben als abgemeldete Person</title>
<link rel="stylesheet" href="jsp/css/navigationOben.css" type="text/css" />
</head>
<body>

<div class="aushaengeschild">
	<img width="1400" height="200" src="jsp/img/logo.jpg">
</div>

<div class="navi">
	<ul class="leiste">
		<li class="navigationen">
			<a target="_self" href="home">Home</a>
		</li>
		<li class="navigationen">
			<a target="_self" href="catalog">Produkt</a>
		</li>
	<c:if test='${not empty user}'>
		<li class="navigationen">
			<a target="_self" href="shop">Warenkorb</a>
		</li>
	</c:if>
	<c:if test='${empty user}'>
		<li class="navigationen">
			<a target="_self" href="user?operation=login">Warenkorb</a>
		</li>
	</c:if>
	<c:if test='${not empty user}'>
		<li class="navigationen">
			<a target="_self" href="user">Mein Konto</a>
		</li>
	</c:if>
	<c:if test='${empty user}'>
		<li class="navigationen">
			<a target="_self" href="user?operation=login">Mein Konto</a>
		</li>
	</c:if>
	<c:if test='${not empty user}'>
		<li class="navigationen">
			<a target="_self" href="user?operation=logout">Logout</a>
		</li>
	</c:if>
	<c:if test='${empty user}'>
		<li class="navigationen">
			<a target="_self" href="user?operation=login">Login</a>
		</li>
	</c:if>					
	</ul>
</div>

<div class="suche"> 
		<form action="catalog?operation=search" method="post" class="navigation">
			<input type="text" name="suche" class="suche" size="30" maxlength="50" value="Geben Sie den Suchbegriff ein">
			<input type="submit" class="button" value=" Produktsuche ">
		</form>
</div>

<div class="nav">
	<ul class="leisterechts">
	<c:if test='${not empty user}'>
		<li class="navigationrechts">
			<a target="_self" href="user?operation=new&type=product">Produkt erstellen</a>
		</li>
	</c:if>
	<c:if test='${empty user}'>
		<li class="navigationrechts">
			<a target="_self" href="user?operation=register">Registrierung</a>
		</li>
	</c:if>	
	</ul>
</div>

</body>
</html>